<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>用户列表打印</title>

	<link rel="stylesheet" href="../assets/css/bootstrap.min.css" />
	<link rel="stylesheet" href="../assets/font-awesome/4.5.0/css/font-awesome.min.css" />
	<link rel="stylesheet" href="../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
	<link rel="stylesheet" href="../assets/css/components.css">
	<link rel="stylesheet" href="../assets/css/darkblue.css">
	<link rel="stylesheet" href="../assets/css/dataTables.bootstrap.css ">
	
	<style>
	
	</style>
</head>

<body>
	<div  id="table_tab">
		<div class="col-xs-12">
			<!-- PAGE CONTENT BEGINS -->
			<div class="portlet box blue">
				<div class="portlet-title">
					<div class="caption">
						<i class="fa fa-comments"></i>
						项目管理子系统项目进度信息
					</div>
				
				</div>
				<div class="portlet-body">

					<div class="table-scrollable">
						<table class="table table-bordered table-hover ">
							<thead>
								<tr>
									<th>
										任务号
									</th>
									<th>
										指派成员
									</th>
									<th>
										任务内容
									</th>
									<th>
										工作量
									</th>
									<th>
										开始时间
									</th>
									<th>
										截止时间
									</th>
									<th style="width: 30%">
										完成进度(%)
									</th>
								</tr>
							</thead>
							<tbody></tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<!-- PAGE CONTENT ENDS -->
	</div>
	<script>
		let userObj = JSON.parse(sessionStorage.getItem('userObj'))
		let tbody = document.querySelector('#table_tab').querySelector('tbody')
		let list = userObj.userList;
		for (let item of list) {
			let tr = document.createElement('tr')
			tbody.appendChild(tr)
			let id = document.createElement('td')
			tr.appendChild(id)
			let name = document.createElement('td')
			tr.appendChild(name)
			let email = document.createElement('td')
			tr.appendChild(email)
			let mobile = document.createElement('td')
			tr.appendChild(mobile)
			let role = document.createElement('td')
			tr.appendChild(role)
			let dueTime = document.createElement('td')
			tr.appendChild(dueTime)
			let progress = document.createElement('td')
			tr.appendChild(progress)
			id.innerHTML = item.id
			name.innerHTML = item.toWhoName
			email.innerHTML = item.content
			mobile.innerHTML = item.workload
			role.innerHTML = item.startTime
			dueTime.innerHTML = item.dueTime
			progress.innerHTML = item.progress
		}
	</script>
</body>

</html>